#!/usr/bin/env node

var client = require('share').client;
var text = process.argv[2];
//var thinktime = 12000;

client.open('redis', 'text', 'http://localhost:9000/channel', function(error, doc) {
    if (error != null){
        console.log("Errore nella open: "+error);
    }
    doc.insert(0, text+'\n');
            
    doc.close();
});